'''
登录接口信息接口
'''
import config
import requests

class LoginApi(object):

    def __init__(self):
        self.login_url = config.BASE_URL + config.LOGIN_URL

    def post_login_rul(self, login_dic):
        '''
        获取登录接口返回信息
        :param login_dic: 传入json格式 key: mobile  key:password
        :return: response 信息
        '''

        return requests.post(self.login_url, headers=config.HEADERS, json=login_dic)




if __name__ == '__main__':

    dict = {
        'mobile': '13800000002',
        'password':'123456'
    }
    response = LoginApi().post_login_rul(dict)
    print(response.json())
